<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'list_user.jsp' starting page</title>
	<base href="<%=basePath%>">
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
    <meta name="viewport" content="width=device-width" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<title>图书管理系统</title>

    <!-- Bootstrap core CSS     -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" />

    <!-- Animation library for notifications   -->
    <link href="assets/css/animate.min.css" rel="stylesheet"/>

    <!--  Light Bootstrap Table core CSS    -->
    <link href="assets/css/light-bootstrap-dashboard.css" rel="stylesheet"/>

    <!--     Fonts and icons     -->
    <link rel="stylesheet" href="assets/css/font-awesome.min.css">
    <link href="assets/css/pe-icon-7-stroke.css" rel="stylesheet" />

	<!--     MyCss               
    <link href="assets/css/mycss.css" rel="stylesheet"/>-->
	
	<!--   Core JS Files   -->
    <script src="assets/js/jquery-1.10.2.js" type="text/javascript"></script>
	<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>

	<!--  Checkbox, Radio & Switch Plugins -->
	<script src="assets/js/bootstrap-checkbox-radio-switch.js"></script>

    <!-- Light Bootstrap Table Core javascript and methods for Demo purpose -->
	<script src="assets/js/light-bootstrap-dashboard.js"></script>



  </head>
  
  <body>
  	<div class="wrapper">
    <div class="sidebar" data-color="blue">

    	<div class="sidebar-wrapper">
            <div class="logo">
                <a href="#" class="simple-text">
                  图书管理系统
                </a>
            </div>

            <ul class="nav">
                <li>
                    <a href="index.html">
                        <p>首页</p>
                    </a>
                </li>
                <li class="active">
                    <a href="search.html">
                        <p>图书</p>
                    </a>
                </li>
                <li>
                    <a href="show.html">
                        <p>用户</p>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <p>详细</p>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <p>待定</p>
                    </a>
                </li>
            </ul>
    	</div>
    </div>

    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <ul class="nav nav-tabs">
                        <li role="presentation" class="active"><a href="#">添加新书</a></li>
                        <li role="presentation"><a href="#">增加库存</a></li>
                        <li role="presentation"><a href="#">管理图书</a></li>
                        </ul>
                        <div class="card">
                            <div class="header">
                                <h4 class="title">添加新书</h4>
                            </div>
                            <!--start-->
                            <div class="content">
                                <form action="book/addbook.do" method="post">
                                    <div class="row">
                                        <div class="col-md-3">
                                            <div class="form-group">
                                                <label>输入ISBN</label>
                                                <input type="text" name="isbn" class="form-control"  placeholder="ISBN">
                                            </div>
                                        </div>
                                        <div class="col-md-3">
                                            <div class="form-group">
                                                <label>选择类型</label>
                                                <select type="text" name="typeid" class="form-control">
                                                    <option>--未选定--</option>
                                                    <option value="1">1：中国文学类</option>
                                                    <option value="2">2：文化类</option>
                                                    <option value="3">3：科技类</option>
                                                    <option value="4">4：医药类</option>
                                                    <option value="5">5：语言类</option>
                                                    <option value="6">6：心理学类</option>
                                                    <option value="7">7：美国长篇小说类</option>
                                                    <option value="8">8：中文短篇小说</option>
                                                    <option value="9">9：哥伦比亚长篇小说</option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="col-md-2">
                                            <div class="form-group">
                                                <label >选择语言</label>
                                                <select type="text" name="language" class="form-control">
                                                    <option>--未选定--</option>
                                                    <option>汉语</option>
                                                    <option>英语</option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="col-md-4">
                                            <div class="form-group">
                                                <label >输入标题</label>
                                                <input type="text" name="title" class="form-control"  placeholder="标题">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-5">
                                            <div class="form-group">
                                                <label>输入出版社</label>
                                                <input type="text" name="publisher" class="form-control" placeholder="出版社" >
                                            </div>
                                        </div>
                                        <div class="col-md-5">
                                            <div class="form-group">
                                                <label>输入作者</label>
                                                <input type="text" name="author" class="form-control" placeholder="作者">
                                            </div>
                                        </div>
                                        <div class="col-md-2">
                                            <div class="form-group">
                                                <label>输入出版年份</label>
                                                <input type="text" name="publish_year" class="form-control" placeholder="出版年份">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                       <div class="col-md-2">
                                            <div class="form-group">
                                                <label>输入价格</label>
                                                <input type="text" name="price" class="form-control" placeholder="价格" >
                                            </div>
                                        </div>
                                        <div class="col-md-2">
                                            <div class="form-group">
                                                <label>馆内总库存</label>
                                                <input type="text"  name="number" class="form-control" placeholder="总库存">
                                            </div>
                                        </div>
                                        <div class="col-md-2">
                                            <div class="form-group">
                                                <label>当前库存</label>
                                                <input type="text" name="stock" class="form-control" placeholder="当前库存">
                                            </div>
                                        </div>
                                        <div class="col-md-6">
                                            <div class="form-group">
                                                <label>选择位置</label>
                                                <select type="text" name="location" class="form-control">
                                                    <option>--未选定--</option>
                                                    <option>中文图书阅览室A</option>
                                                    <option>中文图书阅览室B</option>
                                                    <option>外文图书阅览室A</option>
                                                    <option>外文图书阅览室B</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="form-group">
                                                <label>书籍简介</label>
                                                <!--<input type="text" row="5" name="digest" class="form-control" placeholder="请输入书籍简介">  -->
                                                <textarea rows="5" name="digest" class="form-control" placeholder="请输入书籍简介" ></textarea>
                                            </div>
                                        </div>
                                    </div>

                                    <button type="submit" class="btn btn-info btn-fill pull-right">添加新书</button>
                                    <div class="clearfix"></div>
                                </form>
                            </div>
                            <!--end-->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>	
</div>

</html>
